<?php
$config = require __DIR__ . '/../../config/web.php';
$db = require __DIR__ . '/db.php';
$params = require __DIR__ . '/params.php';

$config['params'] = $params;
$config['components']['db'] = $db;

/*后台模块*/
$config['modules']['admin'] = ['class' => 'app\modules\admin\Admin'];
/*接口模块*/
$config['modules']['api'] = ['class' => 'app\modules\api\Api'];
/*前台模块*/
$config['modules']['home'] = ['class' => 'app\modules\home\Home'];
/*默认控制器*/
$config['defaultRoute'] = 'home/index';

return $config;
